package cn.stylefeng.guns.modular.business.pojo;

import cn.stylefeng.roses.kernel.rule.pojo.request.BaseRequest;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 用户管理请求
 *
 * @author 施律名
 * @date 2022-03-10 17:08:34
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class WxUserRequest extends BaseRequest {

    /**
     * 车辆id
     */
    @NotNull(message = "用户id不能为空", groups = {edit.class, delete.class, detail.class})
    private Long wxUserId;

    /**
     * 车辆名称
     */
    @NotBlank(message = "姓名不能为空", groups = {add.class, edit.class})
    private String wxUserStuName;

    /**
     * 车辆种类：1-轿车，2-货车
     */
    @NotNull(message = "学号不能为空", groups = {add.class, edit.class})
    private Long wxUserStuId;

    /**
     * 宿舍号
     */
    private Long wxUserDormId;

    /**
     * 账号余额
     */
    private BigDecimal wxUserBalance;

    /**
     * OpenId
     */
    private String wxUserOpenId;

}